﻿<%@ Page Title="" Language="VB" MasterPageFile="~/MainLayout.master" AutoEventWireup="false" CodeFile="setup.aspx.vb" Inherits="setup" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <script type="text/javascript">
    function colorChanged(sender) {
        sender.get_element().style.color = "#" + sender.get_selectedColor();
    }
</script>
<h1>System Setup</h1>
<hr />
<asp:Label ID="lblStaffUID" runat="server" Visible="false" />
<div  runat="server" id="divError" class="msg-box-error" visible="false" enableviewstate="false">
    
        <span class="title">Error</span><br />
        <asp:Label ID="lblMsgError" runat="server" Text="ERROR" />
        </div>
<div  runat="server" id="divSuccessful" class="msg-box-success" visible="false" enableviewstate="false">
    
        <span class="title">Successful</span><br />
        <asp:Label ID="lblMsgSuccessful" runat="server" Text="Success" />
    
</div>
<p><%--Description of the page--%></p>
<div class="Setup-container" id="divContentGeneral" style="width:100%;" >   
	<table width="100%"><tr><td class="Setup-title" style="width:150px;"><h3>Company Setup</h3></td><td><div class="General-info-title-line"></div></td></tr></table>
    <table class="form-table" cellpadding="5" cellspacing="5">
        <tr>
            <th scope="row" style="width:200px">Company Name :</th>
            <td>
                <asp:TextBox ID="txtCompanyName" runat="server" Width="300px" MaxLength="250" />
            </td>
            <td rowspan="6" valign="bottom" align="center"><div ><asp:Image ID="imgCompanyLogo" runat="server" /><asp:Label ID="lblOldLogo" runat="server" Visible="false" /></div></td>
        </tr>
        <tr>
            <th scope="row" style="width:200px">Company Description :</th>
            <td>
                <asp:TextBox ID="txtCompanyDesc" runat="server" Width="300px" />
            </td>
        </tr>
        <tr>
            <th scope="row" style="width:200px">Company Initial :</th>
            <td>
                <asp:TextBox ID="txtCompanyInitial" runat="server" Width="300px" MaxLength="5" />
            </td>
        </tr>
        <tr>
            <th scope="row" style="width:200px">Company Logo :</th>
            <td>
                <asp:FileUpload ID="filCompanyLogo" runat="server" Width="300" />
            </td>
        </tr>
    </table>
    
</div>

<div class="Setup-container" id="SystemSetup">   
	<table width="100%"><tr><td class="General-info-title" style="width:150px;"><h3>System Setup</h3></td><td><div class="General-info-title-line"></div></td></tr></table>
    <table class="form-table" cellpadding="5" cellspacing="5">
        <tr>
            <th scope="row" style="width:200px">Stamp Duty : <<asp:TextBox ID="txtLessThan" runat="server" Width="10px" /></th>
            <td>
               <%--<Asp:textbox ID="txtStampDuty" runat="server" Width="300px" onkeypress="return isNumberKey(event)" onpaste="return false;" MaxLength="21" />--%>
                <asp:UpdatePanel ID="udpStampDuty" runat="server">
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="btnAddStampDuty" EventName="Click" />
                                </Triggers>
                                <ContentTemplate>
                                <table>                        
                                    <tr>
                                        <th width="160px" style="text-indent:0px;">
                                            Amount From
                                        </th>
                                        <th width="160px" style="text-indent:0px;">
                                            Amount To
                                        </th>
                                        <th width="160px" style="text-indent:0px;">
                                            Stamp Duty(RM)
                                        </th>
                                        <th>
                                        </th>
                                        <th>
                                        </th>
                                    </tr>        
                                    <asp:Repeater ID="repStampDuty" runat="server">
                                        <ItemTemplate>
                                            <tr>
                                                <td width="160px">
                                                    <asp:Label ID="lblhidRepStampDutyId" runat="server" Visible="false" Text='<%#Container.dataitem("StampDutyId").tostring %>' />
                                                    <asp:Label ID="lblhidRepStatus" runat="server" Visible="false" Text='<%#Container.dataitem("Status").tostring %>' />
                                                    <asp:Label ID="lblhidRepVisible" runat="server" Visible="false" Text='<%#Container.dataitem("Visible").tostring %>' />
                                                    <asp:LinkButton ID="lbtRepAmountFrom" runat="server" Text='<%#Container.dataitem("AmountFrom").tostring %>'
                                                        Style="text-decoration: none" CommandName="Edit" CommandArgument='<%# DataBinder.Eval(Container,"ItemIndex") %>' />
                                                    <asp:TextBox ID="txtRepAmountFrom" runat="server" Text='<%#Container.dataitem("AmountFrom").tostring %>'
                                                        visible="false" />
                                                </td>
                                                <td width="160px">
                                                    <asp:LinkButton ID="lbtRepAmountTo" runat="server" Text='<%#Container.dataitem("AmountTo").tostring %>'
                                                        Style="text-decoration: none" CommandName="Edit" CommandArgument='<%# DataBinder.Eval(Container,"ItemIndex") %>' />
                                                    <asp:TextBox ID="txtRepAmountTo" runat="server" Text='<%#Container.dataitem("AmountTo").tostring %>'
                                                        visible="false" />
                                                </td>
                                                <td width="160px">
                                                    <asp:LinkButton ID="lbtRepStampDuty" runat="server" Text='<%#Container.dataitem("StampDuty").tostring %>'
                                                        Style="text-decoration: none" CommandName="Edit" CommandArgument='<%# DataBinder.Eval(Container,"ItemIndex") %>' />
                                                    <asp:TextBox ID="txtRepStampDuty" runat="server" Text='<%#Container.dataitem("StampDuty").tostring %>'
                                                        visible="false" />
                                                </td>
                                                <td>
                                                    <asp:Button ID="btnMinusStampDuty" runat="server" Text="-" CommandName="Minus" CommandArgument='<%# DataBinder.Eval(Container,"ItemIndex") %>' />
                                                    <asp:Button ID="btnSaveStampDuty" runat="server" Text="Save" visible="false"
                                                        CommandName="Save" CommandArgument='<%# DataBinder.Eval(Container,"ItemIndex") %>' />
                                                </td>
                                                <td>
                                                    <asp:Button ID="btnCancelStampDuty" runat="server" Text="Cancel" visible="false"
                                                        CommandName="Cancel" CommandArgument='<%# DataBinder.Eval(Container,"ItemIndex") %>' />
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                    </table>    
                                    <table>
                                        <tr>
                                            <td width="160px"><asp:TextBox ID="txtAmountFrom" runat="server" /></td>
                                            <td width="160px"><asp:TextBox ID="txtAmountTo" runat="server" /></td>
                                            <td width="160px"><asp:textbox ID="txtStampDuty" runat="server" /></td>
                                            <td><asp:Button ID="btnAddStampDuty" runat="server" Text="+" /></td>
                                        </tr> 
                                    </table>                                
                                </ContentTemplate>
                            </asp:UpdatePanel>  
                            <asp:UpdateProgress ID="upgStampDuty" runat="server" AssociatedUpdatePanelID="udpStampDuty">
                                <ProgressTemplate>
                                    <div style="top:0px; position:fixed; width:100%; text-align:center">
                                        <span style="background-color:Yellow; font-weight:bold">Loading ...</span>
                                    </div>
                                </ProgressTemplate>
                            </asp:UpdateProgress>                    
            </td>
        </tr>  
         <tr>
            <th scope="row" style="width:200px">Stamp Duty : >=<asp:TextBox ID="txtMoreThan" runat="server" Width="10px" /></th>
            <td>
               <%--<Asp:textbox ID="txtStampDuty" runat="server" Width="300px" onkeypress="return isNumberKey(event)" onpaste="return false;" MaxLength="21" />--%>
                <asp:UpdatePanel ID="udpStampDuty2" runat="server">
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="btnAddStampDuty2" EventName="Click" />
                                </Triggers>
                                <ContentTemplate>
                                <table>                        
                                    <tr>
                                        <th width="160px" style="text-indent:0px;">
                                            Amount From
                                        </th>
                                        <th width="160px" style="text-indent:0px;">
                                            Amount To
                                        </th>
                                        <th width="160px" style="text-indent:0px;">
                                            Stamp Duty(RM)
                                        </th>
                                        <th>
                                        </th>
                                        <th>
                                        </th>
                                    </tr>        
                                    <asp:Repeater ID="repStampDuty2" runat="server">
                                        <ItemTemplate>
                                            <tr>
                                                <td width="160px">
                                                    <asp:Label ID="lblhidRepStampDutyId2" runat="server" Visible="false" Text='<%#Container.dataitem("StampDutyId").tostring %>' />
                                                    <asp:Label ID="lblhidRepStatus2" runat="server" Visible="false" Text='<%#Container.dataitem("Status").tostring %>' />
                                                    <asp:Label ID="lblhidRepVisible2" runat="server" Visible="false" Text='<%#Container.dataitem("Visible").tostring %>' />
                                                    <asp:LinkButton ID="lbtRepAmountFrom2" runat="server" Text='<%#Container.dataitem("AmountFrom").tostring %>'
                                                        Style="text-decoration: none" CommandName="Edit" CommandArgument='<%# DataBinder.Eval(Container,"ItemIndex") %>' />
                                                    <asp:TextBox ID="txtRepAmountFrom2" runat="server" Text='<%#Container.dataitem("AmountFrom").tostring %>'
                                                        visible="false" />
                                                </td>
                                                <td width="160px">
                                                    <asp:LinkButton ID="lbtRepAmountTo2" runat="server" Text='<%#Container.dataitem("AmountTo").tostring %>'
                                                        Style="text-decoration: none" CommandName="Edit" CommandArgument='<%# DataBinder.Eval(Container,"ItemIndex") %>' />
                                                    <asp:TextBox ID="txtRepAmountTo2" runat="server" Text='<%#Container.dataitem("AmountTo").tostring %>'
                                                        visible="false" />
                                                </td>
                                                <td width="160px">
                                                    <asp:LinkButton ID="lbtRepStampDuty2" runat="server" Text='<%#Container.dataitem("StampDuty").tostring %>'
                                                        Style="text-decoration: none" CommandName="Edit" CommandArgument='<%# DataBinder.Eval(Container,"ItemIndex") %>' />
                                                    <asp:TextBox ID="txtRepStampDuty2" runat="server" Text='<%#Container.dataitem("StampDuty").tostring %>'
                                                        visible="false" />
                                                </td>
                                                <td>
                                                    <asp:Button ID="btnMinusStampDuty2" runat="server" Text="-" CommandName="Minus" CommandArgument='<%# DataBinder.Eval(Container,"ItemIndex") %>' />
                                                    <asp:Button ID="btnSaveStampDuty2" runat="server" Text="Save" visible="false"
                                                        CommandName="Save" CommandArgument='<%# DataBinder.Eval(Container,"ItemIndex") %>' />
                                                </td>
                                                <td>
                                                    <asp:Button ID="btnCancelStampDuty2" runat="server" Text="Cancel" visible="false"
                                                        CommandName="Cancel" CommandArgument='<%# DataBinder.Eval(Container,"ItemIndex") %>' />
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                    </table>    
                                    <table>
                                        <tr>
                                            <td width="160px"><asp:TextBox ID="txtAmountFrom2" runat="server" /></td>
                                            <td width="160px"><asp:TextBox ID="txtAmountTo2" runat="server" /></td>
                                            <td width="160px"><asp:textbox ID="txtStampDuty2" runat="server" /></td>
                                            <td><asp:Button ID="btnAddStampDuty2" runat="server" Text="+" /></td>
                                        </tr> 
                                    </table>                                
                                </ContentTemplate>
                            </asp:UpdatePanel>  
                            <asp:UpdateProgress ID="upgStampDuty2" runat="server" AssociatedUpdatePanelID="udpStampDuty2">
                                <ProgressTemplate>
                                    <div style="top:0px; position:fixed; width:100%; text-align:center">
                                        <span style="background-color:Yellow; font-weight:bold">Loading ...</span>
                                    </div>
                                </ProgressTemplate>
                            </asp:UpdateProgress>                    
            </td>
        </tr>               
        <tr>
            <th scope="row" style="width:200px">Interval for Renew Reminder :</th>
            <td><asp:textbox ID="txtIntReminderRenew" runat="server" /> days</td>
        </tr>
        <tr>
            <th scope="row" style="width:200px">Interval for Active Reminder :</th>
            <td><asp:textbox ID="txtIntActiveReminder" runat="server" /> days</td>
        </tr>
         <tr>
            <th scope="row" style="width:200px">Interval to Remove Deleted Reminder :</th>
            <td><asp:textbox ID="txtReminderDeleteDays" runat="server" /> days</td>
        </tr>
        <tr>
            <th scope="row" style="width:200px">Interval for Active Announcement :</th>
            <td><asp:textbox ID="txtIntActiveAnnouncement" runat="server" /> days</td>
        </tr>       
        <tr>
            <th scope="row" style="width:200px">Listing Fee :</th>
            <td><asp:TextBox ID="txtListingFee" runat="server" Width="300px" onkeypress="return isNumberKey(event)" onpaste="return false;" onkeyup="UpdateStaff();" MaxLength="21" /> % &nbsp;&nbsp;
                <asp:Button ID="btnUpdateStaff" runat="server" AlternateText="UpdateStaff" CssClass="search-btn" Text="UpdateStaff" />
                <span id="spnUpdate" runat="server" style="color:Red; font-size:xx-small; display:none">Staff Listing can only be updated once you have save the system Setup</span>
                <cc1:ConfirmButtonExtender ID="cbeUpdateStaff" ConfirmText="" runat="server" TargetControlID="btnUpdateStaff" />
            </td>
        </tr>
    </table>
    
</div>


<div class="Setup-container" id="ListingSetup">   
	<table width="100%"><tr><td class="Setup-title" style="width:150px;"><h3>Listing Setup</h3></td><td><div class="General-info-title-line"></div></td></tr></table>
    <table class="form-table" cellpadding="5" cellspacing="5">
        <tr>
            <th scope="row" style="width:200px"></th>
            <td>
                <asp:TextBox ID="txtOldProperty" runat="server" Width="300px" MaxLength="250" 
                    onkeypress="return isNumberKeyOnly(event)" onpaste="return false;" Visible="False" />
            </td>
        </tr>
        
        <tr>
            <th scope="row" style="width:200px">PENDING Color :</th>
            <td>
                <asp:TextBox ID="txtAgentFeedbackColor0" runat="server" Width="300px" MaxLength="6" Font-Bold="true" onKeyPress="javascript: return false;" onPaste="javascript: return false;" /><cc1:ColorPickerExtender ID="ColorPickerExtender1" runat="server" OnClientColorSelectionChanged="colorChanged" TargetControlID="txtAgentFeedbackColor0" />                
            </td>
        </tr>
        <tr>
            <th scope="row" style="width:200px">SOLD BY US Color :</th>
            <td>
                <asp:TextBox ID="txtAgentFeedbackColor1" runat="server" Width="300px" MaxLength="6" Font-Bold="true" onKeyPress="javascript: return false;" onPaste="javascript: return false;" /><cc1:ColorPickerExtender ID="ColorPickerExtender2" runat="server" OnClientColorSelectionChanged="colorChanged" TargetControlID="txtAgentFeedbackColor1" />                
            </td>
        </tr>
        <tr>
            <th scope="row" style="width:200px">NOT FOR SALE Color :</th>
            <td>
                <asp:TextBox ID="txtAgentFeedbackColor2" runat="server" Width="300px" MaxLength="6" Font-Bold="true" onKeyPress="javascript: return false;" onPaste="javascript: return false;" /><cc1:ColorPickerExtender ID="ColorPickerExtender3" runat="server" OnClientColorSelectionChanged="colorChanged" TargetControlID="txtAgentFeedbackColor2" />                
            </td>
        </tr>
        <tr>
            <th scope="row" style="width:200px">SOLD BY OWNER Color :</th>
            <td>
                <asp:TextBox ID="txtAgentFeedbackColor3" runat="server" Width="300px" MaxLength="6" Font-Bold="true" onKeyPress="javascript: return false;" onPaste="javascript: return false;" /><cc1:ColorPickerExtender ID="ColorPickerExtender4" runat="server" OnClientColorSelectionChanged="colorChanged" TargetControlID="txtAgentFeedbackColor3" />                
            </td>
        </tr>
        <tr>
            <th scope="row" style="width:200px">RENTED BY US Color :</th>
            <td>
                <asp:TextBox ID="txtAgentFeedbackColor4" runat="server" Width="300px" MaxLength="6" Font-Bold="true" onKeyPress="javascript: return false;" onPaste="javascript: return false;" /><cc1:ColorPickerExtender ID="ColorPickerExtender5" runat="server" OnClientColorSelectionChanged="colorChanged" TargetControlID="txtAgentFeedbackColor4" />                
            </td>
        </tr>
        <tr>
            <th scope="row" style="width:200px">NOT FOR RENT Color :</th>
            <td>
                <asp:TextBox ID="txtAgentFeedbackColor5" runat="server" Width="300px" MaxLength="6" Font-Bold="true" onKeyPress="javascript: return false;" onPaste="javascript: return false;" /><cc1:ColorPickerExtender ID="ColorPickerExtender6" runat="server" OnClientColorSelectionChanged="colorChanged" TargetControlID="txtAgentFeedbackColor5" />                
            </td>
        </tr>
        <tr>
            <th scope="row" style="width:200px">RENTED BY OWNER Color :</th>
            <td>
                <asp:TextBox ID="txtAgentFeedbackColor6" runat="server" Width="300px" MaxLength="6" Font-Bold="true" onKeyPress="javascript: return false;" onPaste="javascript: return false;" /><cc1:ColorPickerExtender ID="ColorPickerExtender7" runat="server" OnClientColorSelectionChanged="colorChanged" TargetControlID="txtAgentFeedbackColor6" />                
            </td>
        </tr>
        <tr>
            <th scope="row" style="width:200px">HOLD Color :</th>
            <td>
                <asp:TextBox ID="txtAgentFeedbackColor8" runat="server" Width="300px" MaxLength="6" Font-Bold="true" onKeyPress="javascript: return false;" onPaste="javascript: return false;" /><cc1:ColorPickerExtender ID="ColorPickerExtender9" runat="server" OnClientColorSelectionChanged="colorChanged" TargetControlID="txtAgentFeedbackColor8" />                
            </td>
        </tr>
        <tr>
            <th scope="row" style="width:200px">NORMAL (Set below)</th>
            <td>
                <asp:TextBox ID="txtAgentFeedbackColor7" runat="server" Width="300px" 
                    MaxLength="6" Font-Bold="true" onKeyPress="javascript: return false;" 
                    onPaste="javascript: return false;" Visible="False" /><cc1:ColorPickerExtender ID="ColorPickerExtender8" runat="server" OnClientColorSelectionChanged="colorChanged" TargetControlID="txtAgentFeedbackColor7" />                
            </td>
        </tr>

        <tr>
            <th scope="row" style="width:200px">- Old Property Color :</th>
            <td>
                <asp:TextBox ID="txtOldColor" runat="server" Width="300px" MaxLength="6" Font-Bold="true" onKeyPress="javascript: return false;" onPaste="javascript: return false;" />
                <cc1:ColorPickerExtender ID="cpeOld" runat="server" OnClientColorSelectionChanged="colorChanged" TargetControlID="txtOldColor" />
            </td>
        </tr>
        <tr>
            <th scope="row" style="width:200px">- New/Updated Property :</th>
            <td>
                <asp:TextBox ID="txtNewProperty" runat="server" Width="300px" MaxLength="250" 
                    onkeypress="return isNumberKeyOnly(event)" onpaste="return false;" 
                    ReadOnly="True" /> Days Above
            </td>
        </tr>
        <tr>
            <th scope="row" style="width:200px">- New Property Color :</th>
            <td>
                <asp:TextBox ID="txtNewColor" runat="server" Width="300px" MaxLength="6" Font-Bold="true" onKeyPress="javascript: return false;" onPaste="javascript: return false;" />
                <cc1:ColorPickerExtender ID="cpeNew" runat="server" OnClientColorSelectionChanged="colorChanged" TargetControlID="txtNewColor" />
            </td>
        </tr>
        <tr>
            <th scope="row" style="width:200px">- Updated Property Color :</th>
            <td>
                <asp:TextBox ID="txtUpdatedPropertyColor" runat="server" Width="300px" MaxLength="6" Font-Bold="true" onKeyPress="javascript: return false;" onPaste="javascript: return false;" /><cc1:ColorPickerExtender ID="cpeUpdated" runat="server" OnClientColorSelectionChanged="colorChanged" TargetControlID="txtUpdatedPropertyColor" />                
            </td>
        </tr>
    </table>
    
</div>


<%--<asp:UpdatePanel ID="upeFormatNo" runat="server" >
<ContentTemplate>--%>

<div class="Setup-container" id="DocumentNumberFormatSetup" >
    <div class="Setup-title">  
        <table width="100%"><tr><td class="Setup-title" style="width:250px;"><h3>Document Number Format Setup</h3></td><td><div class="General-info-title-line"></div></td></tr></table>
    </div>
    <table class="form-table" cellpadding="5" cellspacing="5">
        <tr>
            <th scope="row" style="width:200px">Open Doc. No. Format :</th><td>
                <asp:TextBox ID="txtOpenFormat" runat="server" Width="600px" onKeyPress="javascript: return false;" onPaste="javascript: return false;" />&nbsp;<asp:Button ID="imgOpenFormat" runat="server" Text="Open Format" CssClass="search-btn" Width="100" ForeColor="GrayText" />
                <asp:Label ID="lblOpenFormat" runat="server" Visible="false" />
            </td>
        </tr>
         <tr>
            <th scope="row" style="width:200px">Close Doc. No. Format :</th><td>
                <asp:TextBox ID="txtCloseFormat" runat="server" Width="600px" onKeyPress="javascript: return false;" onPaste="javascript: return false;" />&nbsp;<asp:Button ID="imgCloseFormat" runat="server" Text="Close Format"  CssClass="search-btn" Width="100" ForeColor="GrayText" />
                <asp:Label ID="lblCloseFormat" runat="server" Visible="false" />
                <br />
                <asp:CheckBox ID="chkCloseUseOpen" runat="server" Text="Use Open Doc. Format" AutoPostBack="true" />
            </td>
        </tr>
        <tr>
            <th scope="row" style="width:200px">Invoice No. Format :</th><td>
                <asp:TextBox ID="txtInvoiceFormat" runat="server" Width="600px" onKeyPress="javascript: return false;" onPaste="javascript: return false;" />&nbsp;<asp:Button ID="imgInvoiceFormat" runat="server" Text="Invoice Format" CssClass="search-btn" Width="100" ForeColor="GrayText" />
                <asp:Label ID="lblInvoiceFormat" runat="server" Visible="false" />
                <br />
                <asp:CheckBox ID="chkInvoiceUseOpen" runat="server" Text="Use Open Doc. Format" AutoPostBack="true" />
                <asp:CheckBox ID="chkInvoiceUseClose" runat="server" text="Use Close Doc. Format" AutoPostBack="true" />
            </td>
        </tr>
    </table>
    
</div>
<asp:Panel ID="pnlFormat" runat="server" CssClass="modalPopup" Style="display: none" Width="60%">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="PopupContainer">
        <tr>
            <td style="width:30px; height:41px" background="images/style01/PopupHead-top-left.gif">
            </td>
            <td background="images/style01/PopupHead-top-middle.gif" valign="bottom">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="PopupHeader">
                <thead>
                    <tr>
                        <td align="center" style="text-align:center; text-indent: 20px;" height="30"><asp:Label ID="lblFormatTitle" runat="server" Text="Document Formatter" /></td>
                        <td align="right" style="text-align:right"><asp:ImageButton ID="imgButClose" runat="server" Width="20px" Height="20px" AlternateText="Close" ImageUrl="~/images/style01/Btn-Close.png" /> </td>
                    </tr>
                 </thead>
                </table>    
            </td>
            <td style="width:30px; height:41px" background="images/style01/PopupHead-top-right.gif">
            </td>
        </tr>
        <tr >
        <td valign="top" height="100%"><img src="images/style01/Popup-Desc-left.gif" width="30" height="100%" /></td><td bgcolor="#FFFFFF" valign="top" ><div class="PopupDesc"  style="background:url(images/style01/Popup-Desc-middle.gif) repeat-x;  height:60px; overflow:auto; padding: 0px 20px 0px 20px; "><asp:Label ID="lblFormatDesc" runat="server" Text="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type" /></div></td>
        <td valign="top" height="100%"><img src="images/style01/Popup-Desc-right.gif" width="30" height="100%" /></td></tr><tr>
            <td style="width:30px" background="images/style01/Popup-left-middle.gif"></td>
            <td bgcolor="#FFFFFF">
                <asp:UpdatePanel ID="upeFormat" runat="server"><ContentTemplate>
               <asp:DataList ID="dlFormat" runat="server" RepeatColumns="5" RepeatDirection="Horizontal">
               <%--These values are stored in database with ; as a deliminator eg. tInit;cInit;lType;empty--%>
                <ItemTemplate>
                    <asp:DropDownList ID="dlDDLFormat" runat="server">
                        <asp:ListItem Text="Transactor Name" Value="tName" />
                        <asp:ListItem Text="Transactor Initial" Value="tInit" />
                        <asp:ListItem Text="Lister Name" Value="lName" />
                        <asp:ListItem Text="Lister Initial" Value="lInit" />
                        <asp:ListItem Text="Company Name" Value="cName" />
                        <asp:ListItem Text="Company Initial" Value="cInit" />
                        <asp:ListItem Text="Running Number" Value="rNumber" />
                        <asp:ListItem Text="Date(dd/MM)" Value="dDate1" />
                        <asp:ListItem Text="Date(dd/MM/yyyy)" Value="dDate2" />
                        <asp:ListItem Text="List Type(R/S)" Value="lType" />
                        <asp:ListItem Text="Login Initial" Value="LoginInit" />
                        <asp:ListItem Text="-" Value="dash" />
                        <asp:ListItem Text="/" Value="slash" />
                        <asp:ListItem Text="" Value="empty" />
                        <%--This should not be inserted into the database as this is used to remove the dropdownlist--%>
                        <asp:ListItem Text="Unused" Value="remove" />
                    </asp:DropDownList>
                    <asp:Label ID="lblDLCurrentItem" Visible="false" Text='<%# Bind("Format") %>' runat="server"  />
                </ItemTemplate>
               </asp:DataList>
               <asp:Button ID="btnPlus" Text="+" runat="server" />
               </ContentTemplate></asp:UpdatePanel>
            </td>
            
            <td style="width:30px" background="images/style01/Popup-right-middle.gif"></td>
        </tr>
        <tr>
            <td style="width:30px; height:55px" background="images/style01/Popup-bottom-left.gif"></td>
            <td style="text-align:right" background="images/style01/Popup-bottom-middle.gif"><asp:Label ID="lblWhichFormat" runat="server" Visible="false" /><asp:Button ID="btnCreateFormat" runat="server" Text="Create" />&nbsp;  <asp:Button ID="BtnCancel" runat="server" Text="Cancel" /></td>
            <td style="width:30px; height:55px" background="images/style01/Popup-bottom-right.gif"></td>
        </tr>
    </table>
</asp:Panel>
 <asp:Button ID="btnHiddenNew" runat="server" style="display:none" />
 <cc1:ModalPopupExtender ID="mpeFormat" runat="server" BackgroundCssClass="modalBackground"
        DropShadow="false" PopupControlID="pnlFormat" TargetControlID="btnHiddenNew" EnableViewState="True" OkControlID="btnCancel" >
  </cc1:ModalPopupExtender>
<%--</ContentTemplate>
</asp:UpdatePanel>--%>
<div class="Confirmation-Container">
&nbsp;
    <table width="100%" style="margin-left:0px;">
                        <tr>
                            <td><div class="General-info-title-line"></div></td>
                            <td style="width:90px;"> 
                                &nbsp;<asp:Button ID="BtnSave" runat="server" Text="Save" ValidationGroup="staffentry" CssClass="search-btn" Width="80"/>
                                <asp:Button ID="Button2" runat="server" Text="Cancel"  CssClass="search-btn" Width="60" style="display:none;" />
                            </td>
                            <td style="width: 60px"><div class="General-info-title-line"></div></td>
                        </tr>
                    </table>
</div>
<script type="text/javascript">

    function UpdateStaff() {
        document.getElementById('<%=btnUpdateStaff.ClientID %>').style.display = 'none'; 
        document.getElementById('<%=spnUpdate.ClientID %>').style.display = 'inline';
    }
    
    
</script>
</asp:Content>

